import java.sql.*;
import java.util.*;

public class SazanaDatabase {
	String host = "localhost";
	String dbuser = "root";
	String dbpass = "";
	Connection connection;
	Thread thread = null;
	
	public SazanaDatabase()
	{
		try
		{
                    Class.forName("com.mysql.jdbc.Driver");
		}
		catch (ClassNotFoundException e)
		{
                    System.out.println("Datenbank-Treiber nicht geladen");
		}
		
		try
		{
                    connection = DriverManager.getConnection("jdbc:mysql://" + host + ":3306/sazana", dbuser, dbpass);
                    System.out.println("Datenbank-Verbindung hergestellt");
		}
		catch (SQLException e)
		{
                    System.out.println("Datenbank-Verbindung konnte nicht hergestellt werden.");
		}
        }
}